# Contributor: Edd Salkield <edd@salkield.uk>
# Maintainer: Edd Salkield <edd@salkield.uk>
pkgname=nwg-bar
pkgver=0.1.0
pkgrel=1
pkgdesc="GTK3-based button bar for sway and other wlroots-based compositors"
url="https://github.com/nwg-piotr/nwg-bar/"
arch="all"
license="MIT"
makedepends="go glib-dev cairo-dev gtk+3.0-dev gtk-layer-shell-dev"
source="https://github.com/nwg-piotr/nwg-bar/archive/v$pkgver/nwg-bar-v$pkgver.tar.gz"
options="!check net"	# no upstream tests

build() {
	go build -o bin/nwg-bar .
}

package() {
	install -m755 -D ./bin/nwg-bar "$pkgdir"/usr/bin/nwg-bar
	install -m644 -D -t "$pkgdir"/usr/share/nwg-bar ./config/*
	install -m644 -D -t "$pkgdir"/usr/share/nwg-bar/images ./images/*
}

sha512sums="
46c7fefe9e8b9557663154f5a808f630835212537d5ee9a5fe4067339d8cd44bd11c2735bd4042309b3d57820fd7f8dcbc23a8366246e9716fc0f00328301cbe  nwg-bar-v0.1.0.tar.gz
"
